

package com.maoshi.shop.distribution.comment.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.maoshi.shop.distribution.comment.dao.DistributionUserGroupMapper;
import com.maoshi.shop.distribution.comment.model.DistributionUserGroup;
import com.maoshi.shop.distribution.comment.service.DistributionUserGroupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 * @author lgh on 2019/04/01.
 */
@Service
public class DistributionUserGroupServiceImpl extends ServiceImpl<DistributionUserGroupMapper, DistributionUserGroup> implements DistributionUserGroupService {

    @Autowired
    private DistributionUserGroupMapper distributionUserGroupMapper;

    @Override
    public IPage<DistributionUserGroup> distributionUserGroupsAndSysUserPage(Page page, DistributionUserGroup distributionUserGroup) {
        return distributionUserGroupMapper.distributionUserGroupsAndSysUserPage(page,distributionUserGroup);
    }

    @Override
    public void deleteByIds(List<Long> ids) {
        distributionUserGroupMapper.deleteByIds(ids);
    }
}
